<template>
    <div>
        son2 子组件可以拿到
        {{parent.mny}}
        <Grandson @drink="drinkFn"></Grandson>
        
        
    </div>
</template>
<script>
import Grandson from "./grandson.vue"
export default {
    name:'son2',
    inject:['parent'],
    components:{
        Grandson
    },
    methods:{
        drinkFn(val){
            console.log('drink',val)
        }
    }
}
</script>